{% extends 'layout.html' %}

{% block content %}
    <form method="post" novalidate>
        {% csrf_token %}
        {% for field in form %}
          <div class="form-group" style='position: relative;margin-bottom:25px;'>
            <label for="{{ field.id_for_label }}">
                {{ field.label }}
                {% if field.help_text %}
                    <span style="font-weight: 400; color:#333;">({{ field.help_text }})</span>
                {% endif %}
            </label>
            {{ field }}
              <span style="color: red; position: absolute">{{ field.errors.0 }}</span>
          </div>
        {% endfor %}

        <button type="submit" class="btn btn-default">保 存</button>
    </form>
{% endblock %}